//
//  BIDCustomDateView.h
//  Nav
//
//  Created by mal on 13-10-31.
//  Copyright (c) 2013年 mal. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol  BIDCustomDateViewDelegate <NSObject>

- (void)getDate:(NSString*)strDate;
@optional
- (void)doCancel;

@end

@interface BIDCustomDateView : UIView
@property (strong, nonatomic)UIDatePicker *datePicker;

@property (strong, nonatomic)UIButton *confirmBtn;
@property (strong, nonatomic)UIButton *cancelBtn;
@property (strong, nonatomic)UIToolbar *toolBar;

//是否已经显示了
@property (assign, nonatomic) BOOL bShow;
/**
 *  是否是以inputView的方式显示
 */
@property (assign, nonatomic) BOOL bIsInputView;

@property (assign, nonatomic) id<BIDCustomDateViewDelegate> delegate;

- (id) initWithMode:(NSUInteger)mode;
- (void)initView;
- (void)show;
- (void)dismissView;
- (void)confirmBtnDown;
- (void)cancelBtnDown;

@end
